﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.Text;
using System.Threading.Tasks;

namespace FreeOPC.Config.Model
{
    [DataContract]
    public class ItemName
    {
        /// <summary>
        /// tagName.ItemName
        /// </summary>
        [DataMember]
        public String Name
        {
            get;
            set;
        }

        [DataMember]
        public String StationName
        {
            get;
            set;
        }
        /// <summary>
        /// OPC IP唯一标识
        /// </summary>
        [DataMember]
        public string OPCIP { get; set; }

        public string GroupName { get; set; }
    }

    /// <summary>
    /// 订阅Model
    /// </summary>
    public class SubscriptionModel
    {
        /// <summary>
        /// OPC IP唯一标识
        /// </summary>
        [DataMember]
        public string OPCIP { get; set; }

        public string GroupName { get; set; }
    }

    public class StationRequestModel
    {
       public string OPCIP { get; set; }

    }

    public class TagRequestModel
    {
        public string OPCIP { get; set; }

        public string StationName { get; set; }

    }

    public class OPCStartRequestModel
    {
       public int Id { get; set; }
         public string OPCServerIP { get; set; }
        public string DAProgId { get; set; }
        public string AEProgId { get; set; }
        public int SubsystemTypeId { get; set; }

    }

    public class OPCStopRequestModel
    {

        public string OPCServerIP { get; set; }


    }
}
